# coding utf-8
'''
Tuples are used to store multiple items in a single variable.
Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage.
A tuple is a collection which is ordered and unchangeable.
Tuples are written with round brackets.
タプルは、複数の項目を 1 つの変数に格納するために使用されます。
タプルは、データのコレクションを格納するために使用される Python の 4 つの組み込みデータ型の 1 つです。他の 3 つは、リスト、セット、辞書で、それぞれ品質と使用方法が異なります。
タプルは、順序付けされ、変更できないコレクションです。
タプルは丸括弧で記述されます。
'''
thistuple = ("apple", "banana", "cherry")
print(type(thistuple))
print(thistuple)
thistuple = ("apple", "banana", "cherry", "apple", "cherry")
print(thistuple,thistuple[1], thistuple[-1], thistuple[1:3])